<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

<!--拖拽验证-->
<script src="__TMPL__/portal/public/assets/js/drag.js"></script>

<script type="text/javascript">
    $('.modal-dialog-login').modal().css({
        'margin-top': function () {
            return - ($(this).height() / 2);
        }
    });
    $('.modal-dialog-publish').modal().css({
        'margin-top': function () {
            return - ($(this).height() / 2);
        }
    });
    $('.endLiving').modal().css({
        'margin-top': function () {
            return - ($(this).height() / 2);
        }
    });
</script>

<div class="modal fade bs-example-modal-sm" id="myModal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm width-440" role="document">
        <div class="modal-content modal-dialog-login">
            <div class="auth-content">
                <img src="__TMPL__/portal/public/assets/images/logo-diag.png" alt="登录logo" class="login-logo">
                <img src="" alt="关闭按钮" class="close-img">
                <div class="content-right">
                    <div class="register-content">
                        <div class="register-title">
                            <img src="" alt="返回上一步" style="display: none;">
                            <span>手机号验证注册</span>
                        </div>
                        <div class="register-form">
                            <div class="form-group">
                                <input type="text" autocomplete="new-password" placeholder="请输入您的手机号">
                            </div>
                            <div class="code-content">
                                <input type="text" name="code" autocomplete="new-password" placeholder="请输入验证码">
                                <span class="code-btn">获取验证码</span>
                            </div>
                            <div class="back-login">
                                <span>账号密码登录</span>
                            </div>
                            <div id="nc-container" class="nc-container" data-nc-idx="4">
                                <div id="nc_4_wrapper" class="nc_wrapper">
                                     <div id="drag"></div>
                                </div>
                            </div>
                            <div class="error-info">

                            </div>
                            <button class="login-btn">下一步</button>
                        </div>
                        <div class="register-form" style="display: none;">
                            <div class="form-group set-pwd">
                                <input type="password" autocomplete="new-password" placeholder="新密码（英文+数字，6-18位）">
                            </div>
                            <div class="form-group confirm-pwd">
                                <input type="password" autocomplete="new-password" placeholder="确认密码">
                            </div>
                            <div class="error-info pwd-error"></div>
                            <button class="login-btn next-btn">注册</button>
                        </div>
                        <div class="agreement-box">
                            <div class="agreement-text">登录/注册表示您已阅读并同意 </div>
                            <div>
                                <span class="reg-open-protocol">《大鹏教育用户服务协议》</span> 及 <span class="reg-open-protocol">《隐私政策》</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<include file="block/publish" />

<div class="modal fade" id="endLiving" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content endLiving">
            <div class="content container-main">
                <div class="container-diag">
                    <img src="__TMPL__/portal/public/assets/images/close.png" alt="关闭按钮" class="close-img close-img-end">
                    <div class="live-status end">直播已结束！</div>
                    <button>知道啦</button>
                </div>
            </div>
        </div>
    </div>
</div>

<!--this is the right -->
<div class="big-box">
    <div class="service-wrapper">
        <div class="margin-wrapper-servicer goto-dp">
            <a><i class="serviser-icon goto-dp-icon"></i><div>走进大鹏</div></a>
        </div>
        <div class="margin-wrapper-servicer goto-police">
            <a><i class="serviser-icon pec-icon"></i><div>反诈防骗</div></a>
        </div><!---->
        <div class="margin-wrapper-servicer">
            <a onclick="doyoo.util.openChat('g=10084844'); return false" target="_blank"><i class="serviser-icon online-icon"></i><div>在线咨询</div></a>
        </div>
        <div class="margin-wrapper-servicer">
            <a onclick="doyoo.util.openChat('g=10084845'); return false" target="_blank"><i class="serviser-icon suggest-icon"></i><div>建议投诉</div></a>
        </div>
        <div class="margin-wrapper-servicer">
            <a onclick="doyoo.util.openChat('g=10084846'); return false" target="_blank"><i class="serviser-icon find-icon"></i><div>找回密码</div></a>
        </div>
        <div class="margin-wrapper-servicer gov-tel"><a><i class="serviser-icon"></i><p>官方电话</p><p class="font-s">周一至周日</p><p>24小时在线</p></a>
            <span class="gov-tel-animation">
                <img src=""> 400-101-8899
            </span>
        </div>
    </div>
    <div id="to-top" style="">
        <i></i>
    </div>
</div>
<script>
    $('#myModal').on('show.bs.modal', function (e) {
        $('#drag').html('');
        $('#drag').drag();
    });
    $('.close-img').click(function () {
        $('#myModal').modal('hide');
    });
    $('.close-btn-x').click(function () {
        $('#myPublishModal').modal('hide');
    });
    $('.close-img-end').click(function () {
        $('#endLiving').modal('hide');
    });
    $('.endLiving').find('button').click(function () {
        $('#endLiving').modal('hide');
    });
    $('.login-btn').click(function () {
        $('#myModal').modal('show');
    });
</script>